package com.ydd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ydd.dto.TagDTO;
import com.ydd.entity.YddTag;
import com.ydd.vo.TagVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description TODO
 * @Author fang
 * @Date 2023-05-29 16:11
 */
@Mapper
public interface YddTagMapper extends BaseMapper<YddTag> {
    /**
     * AdminIndexService-baseInfo
     * @return
     */
    @Select("select count(*) from ydd_tag")
    Integer getTagNum();

    @Select("select * from ydd_tag")
    List<TagVO> all();
}
